﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DictManageList.aspx.cs"
    Inherits="BOH.DataManagement.DictManageList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />

    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
        当前位置:<a href="OverView.aspx" target="frameControl">后台数据管理</a> >> 数据字典管理
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
            <a href="DictManage.aspx" target="frameControl">添加新字典数据</a>
        </div>
        <div id="divGrid">
            <asp:Repeater runat="server" ID="RepDict" OnItemDataBound="RepDict_ItemDataBound">
                <HeaderTemplate>
                    <table class="Grid" width="98%">
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <b>字典名称</b>
                            </td>
                            <td>
                                <b>字典数据</b>
                            </td>
                            <td>
                                <b>状 态</b>
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="ARow">
                        <td align="center">
                            <span class="querytree_collaspe" style="display: block;" id="span1" runat="server"
                                onclick="ShowLineItemList(this)"></span>
                            <asp:HiddenField ID="hidenValue" runat="server" Value='<%#Eval("dict_value") %>' />
                        </td>
                        <td>
                            <%#Eval("dict_display")%>
                        </td>
                        <td>
                            <%#Eval("dict_value") %>
                        </td>
                        <td>
                            <%#getStatus(Eval("dict_status").ToString())%>
                        </td>
                    </tr>
                    <tr  id="span1_tr" runat="server">
                        <td colspan="4" align="center" style="padding-top: 3px;">
                            <asp:GridView ID="DictViewList" runat="server" AutoGenerateColumns="False" Width="90%"
                                CssClass="Grid" AllowPaging="false">
                                <Columns>
                                    <asp:TemplateField HeaderText="名称">
                                        <ItemTemplate>
                                            <asp:Label ID="labDisplay" runat="server"><%#Eval("dict_display")%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="值">
                                        <ItemTemplate>
                                            <asp:Label ID="labValue" runat="server"><%#Eval("dict_value")%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="状态">
                                        <ItemTemplate>
                                            <asp:Label ID="labStatus" runat="server"><%#getStatus(Eval("dict_status").ToString())%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="修改" HeaderStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <a href='DictManage.aspx?ID=<%#Eval("dict_ID")%>&dict=<%#Eval("dict_Name") %>' target="frameControl">修改</a> &nbsp;
                                            <a href='DictManageList.aspx?ID=<%#Eval("dict_ID")%>' onclick='return ConfimDelete()'>
                                                删除</a>
                                        </ItemTemplate>
                                        <ItemStyle Width="120px" HorizontalAlign="Center" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr>
                        <td align="center">
                            <span class="querytree_collaspe" style="display: block;" id="span1" runat="server"
                                onclick="ShowLineItemList(this)"></span>
                            <asp:HiddenField ID="hidenValue" runat="server" Value='<%#Eval("dict_value") %>' />
                        </td>
                        <td>
                            <%#Eval("dict_display")%>
                        </td>
                        <td>
                            <%#Eval("dict_value") %>
                        </td>
                        <td>
                            <%#getStatus(Eval("dict_status").ToString())%>
                        </td>
                    </tr>
                    <tr id="span1_tr" runat="server">
                        <td colspan="4" align="center" style="padding-top: 3px;">
                            <asp:GridView ID="DictViewList" runat="server" AutoGenerateColumns="False" Width="90%"
                                CssClass="Grid" AllowPaging="false">
                                <Columns>
                                    <asp:TemplateField HeaderText="名称">
                                        <ItemTemplate>
                                            <asp:Label ID="labDisplay" runat="server"><%#Eval("dict_display")%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="值">
                                        <ItemTemplate>
                                            <asp:Label ID="labValue" runat="server"><%#Eval("dict_value")%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="状态">
                                        <ItemTemplate>
                                            <asp:Label ID="labStatus" runat="server"><%#getStatus(Eval("dict_status").ToString())%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="修改" HeaderStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <a href='DictManage.aspx?ID=<%#Eval("dict_ID")%>' target="frameControl">修改</a> &nbsp;
                                            <a href='DictManageList.aspx?ID=<%#Eval("dict_ID")%>' onclick='return ConfimDelete()'>
                                                删除</a>
                                        </ItemTemplate>
                                        <ItemStyle Width="120px" HorizontalAlign="Center" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    </form>
</body>
</html>
